package com.ms.game.billing;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xpec.c4.db.model.basic.BasicModel;

/**
 * 儲值限制名單
 * @author TW16028
 *
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Table(name = GameBillingRestrictedListModel.TABLE_NAME)
@org.hibernate.annotations.Table(appliesTo = GameBillingRestrictedListModel.TABLE_NAME, indexes = { @org.hibernate.annotations.Index(name = "IDX_ACCOUNT_ID", columnNames = { "accountId" }) })

public class GameBillingRestrictedListModel extends BasicModel{
	
	public static final String TABLE_NAME = "game_billing_restricted_list";
	
	private static final long serialVersionUID = 6186801829943887070L;
	
	private String accountId;
	
	private BigDecimal googlePlayLimit;
	
	private long googlePlayEndTime;
	
	private BigDecimal appStoreLimit;
	
	private long appStoreEndTime;

	@Id
	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	@Column(precision = 19, scale = 2, columnDefinition = "DECIMAL(19,2) default 0.0")
	public BigDecimal getGooglePlayLimit() {
		return googlePlayLimit;
	}

	public void setGooglePlayLimit(BigDecimal googlePlayLimit) {
		this.googlePlayLimit = googlePlayLimit;
	}

	public long getGooglePlayEndTime() {
		return googlePlayEndTime;
	}

	public void setGooglePlayEndTime(long googlePlayEndTime) {
		this.googlePlayEndTime = googlePlayEndTime;
	}

	@Column(precision = 19, scale = 2, columnDefinition = "DECIMAL(19,2) default 0.0")
	public BigDecimal getAppStoreLimit() {
		return appStoreLimit;
	}

	public void setAppStoreLimit(BigDecimal appStoreLimit) {
		this.appStoreLimit = appStoreLimit;
	}

	public long getAppStoreEndTime() {
		return appStoreEndTime;
	}

	public void setAppStoreEndTime(long appStoreEndTime) {
		this.appStoreEndTime = appStoreEndTime;
	}


}
